﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.ConfigCenter.Web.ApplicationCore.Dtos.Project
{
    public class ProjectsOutput
    {
        public int Id { get; set; }

        /// <summary>
        /// 存储方式 1共享目录  2 mysql
        /// </summary>
        public int StorageType { get; set; } = 2;

        /// <summary>
        /// 项目编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        public bool Enabled { get; set; } = true;

        public string EnabledString
        {
            get
            {
                if (this.Enabled) return "启用";
                return "禁用";
            }
            set { }
        }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderIndex { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        public int CreateBy { get; set; }
        public int UpdateBy { get; set; }

        public string CreateByName { get; set; }

        public string UpdateByName { get; set; }
    }
}
